package com.easyweb.entity;

// Generated May 29, 2009 4:16:57 PM by Hibernate Tools 3.2.4.GA

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * Gorevler generated by hbm2java
 */
@Entity
@NamedQueries({@NamedQuery(name="gorevlerTumList" , query="select g from Gorevler g order by g.gorevAdi")})
@Table 
public class Gorevler implements java.io.Serializable {

	private Long id;
	private Integer version;
	private String gorevAdi;

	public Gorevler() {
	}

	public Gorevler(String gorevAdi) {
		this.gorevAdi = gorevAdi;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Version
	@Column(name = "version")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "gorevAdi", nullable = false, length = 50)
	@NotNull
	@Length(max = 50)
	public String getGorevAdi() {
		return this.gorevAdi;
	}

	public void setGorevAdi(String gorevAdi) {
		this.gorevAdi = gorevAdi;
	}

}
